package com.appkubes.mall.restful.application.store.entity.vo;

import com.appkubes.base.core.entity.vo.AppKeyVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("申请类型")
public class ApplyStoreVO extends AppKeyVO {

    @NotEmpty(message = "来源类型不能为空")
    @NotNull(message = "来源类型不能为空")
    @Pattern(regexp = "(USER|ADMIN|API)", message = "来源类型不正确")
    @ApiModelProperty("申请类型(USER|ADMIN|API)")
    String applySourceType;
    @NotEmpty(message = "用户来源KEY不能为空")
    @ApiModelProperty("申请来源的KEYss")
    String applySourceKey;

    @NotEmpty(message = "用户名不能为空")
    String storeName;

    @NotEmpty(message = "电话不能为空")
    String tel;
    @NotEmpty(message = "省份不能为空")
    String province;
    @NotEmpty(message = "城市不能为空")
    String city;
    @NotEmpty(message = "地址不能为空")
    String address;
    String shippingAddress;
    String longitude;
    String latitude;


}
